﻿namespace YKXiangQi.Models
{
    public class MoveDetails
    {
        public int MoveNumber { get; set; }
        public string Fen { get; set; }
        public string Notation { get; set; }
        public string Comment { get; set; }
        public string MoveNumberString
        {
            get
            {
                string result = string.Empty;
                if (MoveNumber%2 == 1)
                {
                    result = ((int) (MoveNumber/2) + 1).ToString() + ".";
                }

                return result;
            }
        }
    }
}
